package com.mmall.common;

import org.codehaus.jackson.map.annotate.JsonSerialize;

@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class JsonResponse {
	private int statusCode;
	private String message;
	private Object data;
	
	public JsonResponse(int statusCode,String message,Object data) {
		this.statusCode = statusCode;
		this.message = message;
		this.data = data;
	}
	
	public static JsonResponse  successResponse(Object data) {
		return new JsonResponse(Const.SUCCESS_CODE,Const.SUCCESS_MESSAGE,data);
	}

	public int getStatusCode() {
		return statusCode;
	}


	public String getMessage() {
		return message;
	}

	

	public Object getData() {
		return data;
	}

	
	
}
